package com.shoux.api.web.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 问卷信息表
 * </p>
 *
 * @author chris
 * @since 2022-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("questionnaire_info")
@ApiModel(value="QuestionnaireInfoEntity对象", description="问卷信息表")
public class QuestionnaireInfoEntity extends Model<QuestionnaireInfoEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "企业社会信用代码")
    private String qyshxydm;

    @ApiModelProperty(value = "去年累计利润总额")
    private Integer qnljlrze;

    @ApiModelProperty(value = "去年销售收入")
    private Integer qnxssr;

    @ApiModelProperty(value = "去年纳税总额")
    private Integer qnnsze;

    @ApiModelProperty(value = "去年资产总额")
    private Integer qnzcze;

    @ApiModelProperty(value = "企业贷款余额(非按揭)")
    private Integer qydkyefaj;

    @ApiModelProperty(value = "未来24个月企业还款总额(按揭)")
    private Integer wloyhkzeaj;

    @ApiModelProperty(value = "贷款用途")
    private Integer dkyt;

    @ApiModelProperty(value = "其他贷款用途")
    private String qtdkyt;

    @ApiModelProperty(value = "插入时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "insert_time", fill=FieldFill.INSERT)
    private Date insertTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time",fill=FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "删除标识(0:未删除 1:删除)")
    @TableLogic
    private Integer delFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
